@NickBuilder
I now have looked at the code and (of course) you are right, the interrupt is used for the pulse count which I think is the best way of programming this function.
My sensor is based on an old version of this code but modified for use with Openhab (which does not give any start value back, this function has to be own programmed). Another modification is that same unit monitors a number of temperature sensors.
The "thing" has been in operation since my first post above and works well but I guess I should make an effort to modernize the code. Maybe a task for the long and dull autumn/winter days here.